cask 'dmm-player-for-chrome' do
  version '1.5.0.10'
  sha256 'c9a564a31b8d29f72085c9b4eada52a03ca3fa0fd3cd50fed3a071c614ddef39'

  url "http://portalapp.dmm.com/silverlightplayer/dmm/m/#{version.dots_to_underscores}/DMMPlayerForChromeInstaller_#{version.dots_to_underscores}.pkg"
  name 'DMM Player for Chrome'
  homepage 'https://www.dmm.com/digital/info_for_chrome_user_html/'

  pkg "DMMPlayerForChromeInstaller_#{version.dots_to_underscores}.pkg"

  uninstall pkgutil: [
                       'com.apple.ScriptEditor.id.DMMPlayerForChrome*',
                       '1022638813.chrome.player.dmm.com',
                     ]
end
